//
//  VCUpdateSuccess.swift
//  PosApp
//
//  Created by HippieFox on 2019/8/2.
//  Copyright © 2019 李英新. All rights reserved.
//

import UIKit

class VCUpdateSuccess: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        self.view.backgroundColor = UIColor.black.withAlphaComponent(0.4)
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.
        // Pass the selected object to the new view controller.
    }
    */
    @IBAction func rightNow(_ sender: Any) {
        UIView.animate(withDuration: 0.3, animations: {
            self.view.isHidden = true
        }) { (isSuccess) in
            
           
            self.parent?.navigationController?.popViewController(animated: true)
            self.removeFromParent()
            self.view.removeFromSuperview()
        }

    }
    
    @IBAction func close(_ sender: Any) {
        self.removeFromParent()
        self.view.removeFromSuperview()
    }
}
